import Layout from '../../../views/layout/Layout.vue'

// export default {
//   name: 'qiping-dataService',
//   path: '/qiping/dataService',
//   redirect:'/qiping/dataService/index',
//   component: Layout,
//   meta: { title: '数云服务', icon: 'documentation' },
//   equType: 'ydqp',
//   children: [
//     // 气瓶部分的数云服务
//     {
//       path: "sydw/:SydwId?",
//       name: 'qiping-dataService-sydw',
//       component: () => import('@/views/modules/qiping/DataService/Sydw'),
//       meta: { title: '使用单位',  icon: '数据看板', roles: ['system', 'admin'],activeMenu:'/qiping/dataService/sydw' }
//     },

//     {
//       path: "make/:MakeCom?",
//       name: 'qiping-dataService-make',
//       component: () => import('@/views/modules/qiping/DataService/Make'),
//       meta: { title: '制造单位',  icon: '数据看板', roles: ['system', 'admin']}
//     },
//     {
//       path: "check/:CheckUnit?",
//       name: 'qiping-dataService-check',
//       component: () => import('@/views/modules/qiping/DataService/Check'),
//       meta: { title: '检验单位', icon: '数据看板', roles: ['system', 'admin']}
//     },
//     {
//       path: "regulator/:Area?/:JjUnit?",
//       name: 'qiping-dataService-regulator',
//       component: () => import('@/views/modules/qiping/DataService/Regulator'),
//       meta: { title: '监管部门',  icon: '数据看板', roles: ['system', 'admin'] }
//     }
//   ]

// }

export default [
  {
    name: 'qiping-dataService',
    path: '/qiping/dataService',
    redirect: '/qiping/dataService/index',
    component: Layout,
    equType: 'ydqp',
    meta: { title: '云服务总览', icon: 'documentation', roles: ['system', 'admin'] },
    children: [
      {
        path: 'check/:CheckUnit?',
        name: 'qiping-dataService-check',
        component: () => import('@/views/modules/qiping/DataService/Check'),
        meta: { title: '云服检验', icon: '数据看板', roles: ['system', 'admin'] }
      },
    ]
  },
  {
    name: 'qiping-dataService',
    path: '/qiping/dataService',
    redirect: '/qiping/dataService/index',
    component: Layout,
    equType: 'ydqp',
    meta: { title: '云服务总览', icon: 'tab', roles: ['system', 'admin'] },
    children: [
      {
        path: "sydw/:SydwId?",
        name: 'qiping-dataService-sydw',
        component: () => import('@/views/modules/qiping/DataService/Sydw'),
        meta: { title: '云服用户', icon: '数据看板', roles: ['system', 'admin'] }
      },
    ]
  },
  {
    name: 'qiping-dataService',
    path: '/qiping/dataService',
    redirect: '/qiping/dataService/index',
    component: Layout,
    equType: 'ydqp',
    meta: { title: '云服务总览', icon: 'tab', roles: ['system', 'admin'] },
    children: [
      {
        path: "make/:MakeCom?",
        name: 'qiping-dataService-make',
        component: () => import('@/views/modules/qiping/DataService/Make'),
        meta: { title: '云服制造', icon: '数据看板', roles: ['system', 'admin'] }
      }
    ]
  },
  {
    name: 'qiping-dataService',
    path: '/qiping/dataService',
    redirect: '/qiping/dataService/index',
    component: Layout,
    equType: 'ydqp',
    meta: { title: '云服务总览', icon: 'tab', roles: ['system', 'admin'] },
    children: [
      {
        path: "regulator/:Area?/:JjUnit?",
        name: 'qiping-dataService-regulator',
        component: () => import('@/views/modules/qiping/DataService/Regulator'),
        meta: { title: '云服监管', icon: '数据看板', roles: ['system', 'admin'] }
      },
    ]
  },
]
